/**@type {import("vue-router").RouteRecordRaw[]} */
import {PageRoutes} from './indexRoutes';
const routes = [
	{
		path: '/',
		redirect: '/index',
	},
	{
		path: '/login',
		name: 'login',
		meta:{label: '登录'},
		component: () => import('@/pages/login/login.vue')
	},
	{
		path: '/index',
		name: 'index',
		redirect: '/home',
		component: () => import('@/pages/index/index.vue'),
		children: PageRoutes()
	},
	{
		path: '/404',
		name: '404',
		meta:{label: '页面错误'},
		component: () => import('@/pages/errorPage/NotFound.vue')
	},
	{
			path: '/:catchAll(.*)', // 不识别的path自动匹配404
			redirect:'/404'
	}


];


export default routes;